import request from '@/utils/request'
import id from 'element-ui/src/locale/lang/id'

export function getList(data) {
  return request({
    url: '/userManagement/getList',
    method: 'post',
    data,
  })
}

export function doSave(data) {
  return request({
    url: '/userManagement/save',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/userManagement/disable',
    method: 'put',
    data,
  })
}
export function doEnable(data) {
  return request({
    url: '/userManagement/enable',
    method: 'put',
    data,
  })
}

export function getDeptRoleSelectList(data) {
  return request({
    url: '/userManagement/deptRoleSelectList',
    method: 'get',
    data,
  })
}

export function getPermissionList(uid) {
  return request({
    url: '/userManagement/permission/' + uid,
    method: 'get',
  })
}
